package com.linsir.file.config;

import com.linsir.file.util.LocalFileUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：linsir
 * @date ：Created in 2022/9/17 23:12
 * @description：本地存储配置
 * @modified By：
 * @version: 0.0.1
 */

@Slf4j
@Configuration
public class LocalConfiguration {


    @Value(value = "${linsir.file.local_uplaod_path}")
    private  String localUploadPath;


    @Bean
    public void  init(){
        LocalFileUtil.setLocalUploadPath(localUploadPath);
    }

}
